import time

str = "2022-02-24"


def conversion_time(s):
    timeStruct = time.strptime(s, "%Y-%m-%d")
    timeStamp = int(time.mktime(timeStruct))
    localTime = time.localtime(timeStamp)
    strTime = time.strftime("%m{m}%d{d}", localTime).format(m='月', d='日')
    if strTime[0] == '0':
        return strTime[1:]
    return strTime


strTime = conversion_time(str)
print(strTime)
